<?
	class Arm
	{
		var $oModule;
		var $oDatabase;

		function Arm( &$oModule )
		{
			$this->oModule = &$oModule;
			$this->oDatabase = &$oModule->oDatabase;
			$this->cClass = strtolower( get_class($this) );
			$this->oTab = new Tab(  $this->cClass  );
			if ( MODO_AJAX == true)
			{
				$cUrlBase = replaceString( PARAM_REFRESH, "class", getThisUrl());
				$cUrlBase = replaceString( PARAM_CLASS, strtolower(get_class($this)) , $cUrlBase);
				$this->oTab->setUrl( $cUrlBase );
			}
		}
		
		function make()
		{
		}
		
		function doc( $cMetodo, $cParametros )
		{
			ob_start();
			ob_clean();
			$this->$cMetodo($cParametros);
			$cReturn = ob_get_contents();
			ob_end_clean();
			return $cReturn ;		
		}
	}
?>
